const express = require('express');
const router = express.Router();
router.get('/forCurrentUser', (req, res) => {
    const data = [];
    for(let i = 1; i < 51; i++)
        data.push({
            id: `${i}`,
            brandId: `${i}`,
            brandCode: `brandCode${i}`,
            brandName: `brandName${i}`,
            day: '2019-04-17T05:13:36.246Z',
            isWorkingDay: true,
            rowVersion: 'string',
            options: [
                'update'
            ]
        });
    res.json({
        message: 'ok',
        payload: {
            content: data,
            totalElements: 50
        }
    });
});
router.put('/:id', (req, res) => {
    res.json({
        message: '修改成功'
    });
});
router.post('/import', (req, res) => {
    res.json({
        message: '导入成功'
    });
});
router.get('/:id', (req, res) => {
    res.json({
        payload: {
            id: '1',
            brandId: '1',
            brandCode: 'brandCode1',
            brandName: 'brandName2',
            day: '2019-04-17T05:13:36.246Z',
            isWorkingDay: true,
            rowVersion: 'string',
            options: [
                'update'
            ]
        }
    });
});
module.exports = router;
